Configure Snowflake
Configure Snowflake
Snowflake is a cloud-based data warehouse. This guide uses the Snowflake free trial which lasts 30 days and requires no credit card.
Create a Free Trial Account
- Go to https://signup.snowflake.com and fill in your details
- Choose the cloud provider and region closest to you — any provider works for this course, AWS is a safe default
- Select the
Standardedition — this is sufficient for SQL 101 - Check your email and activate the account
- On first login you will land in the Snowflake web UI called
Snowsight - Note your account identifier from the browser URL — it looks like
https://app.snowflake.com/yourregion/youraccountid/. You will needyouraccountidfor the DBeaver connection
Connect via DBeaver
- Open DBeaver and click the
New Database Connectionbutton in the top left - Search for
Snowflake, select it, and clickNext - Fill in the connection fields:
Host:youraccountid.snowflakecomputing.com(replaceyouraccountidwith your actual account identifier)Port:443Database: leave blank for nowWarehouse:COMPUTE_WH(the default warehouse on the free trial)Username: your Snowflake login emailPassword: your Snowflake password
- Click
Test Connection— if prompted, download the Snowflake JDBC driver - Click
Finish - The Snowflake connection will appear in the
Database Navigatoron the left
Creating the Database Schema
Now that the connection is established you can create the database schema found here. Before running the schema, make sure a warehouse is active and you have the right role:
- Ensure
COMPUTE_WHis running. InSnowsightgo toAdmin→Warehousesand confirm it is resumed. Or run:
ALTER WAREHOUSE COMPUTE_WH RESUME;
- Run the following before executing the schema script to ensure sufficient privileges:
USE ROLE SYSADMIN;
- After the schema is created, run the following before running course queries:
USE DATABASE SQL101;
Notes
- Account identifier format: some older Snowflake accounts use
orgname-accountnameformat — check underAdmin→AccountsinSnowsightif unsure - Warehouse suspended: free trial warehouses auto-suspend after inactivity — resume with
ALTER WAREHOUSE COMPUTE_WH RESUME; - Trial expiry: the free trial lasts 30 days — export any work before it expires. The course content can be completed well within the trial period
- DBeaver driver error: if the Snowflake driver fails to auto-download, manually download the JDBC driver from https://docs.snowflake.com/en/user-guide/jdbc-download and add it via
Driver Managerin DBeaver - Role permissions: if schema creation fails, ensure you are using the
SYSADMINrole — runUSE ROLE SYSADMIN;before the schema script